Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 2 - Control Manager Reference / Control Manager Types and Constants


The Tab Information Structure

NEW WITH THE APPEARANCE MANAGER

If you are not creating a tab control with a 'tab#' resource, you can call SetControlMaximum to set the number of tabs in a tab control. Then use SetControlData with the tab information structure to access and set information for an individual tab in a tab control. Available with Appearance 1.0.1 and later.

A tab information structure is of type ControlTabInfoRec:

struct ControlTabInfoRec {
   SInt16               version;
   SInt16               iconSuiteID;
   Str255               name;
};

Field Description
version
A signed 16-bit integer indicating the version of the tab information structure. The only currently available version value is 0.
iconSuiteID
A signed 16-bit integer indicating the ID of an icon suite to be used for the tab label. Pass 0 for no icon.
name
A string specifying the title to be used for the tab label.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998